window.onload = function(){
    
    let myaxios = axios.create();
    // console.log(myaxios);
    myaxios.interceptors.request.use(config => {
        return config;
    },err => {
        return Promise.reject(err);
    });
    myaxios.interceptors.response.use(response => {
        return response;
    },err => {
        return Promise.reject(err)
    })
    window.$axios = myaxios;
}
(function(window){
    let myaxios = axios.create();
    // console.log(myaxios);
    myaxios.interceptors.request.use(config => {
        return config;
    },err => {
        return Promise.reject(err);
    });
    myaxios.interceptors.response.use(response => {
        return response;
    },err => {
        return Promise.reject(err)
    })
    window.$axios = myaxios;
}(window))